<?php

namespace zhtfrontend\models\datas;

use Yii;

/**
 * This is the model class for table "{{%cards_count}}".
 *
 * @property integer $id
 * @property integer $issuser_id
 * @property integer $reissuser_id
 * @property integer $salesman
 * @property integer $telephone
 * @property integer $cards_send_id
 * @property integer $is_withdraw
 * @property integer $batch_id
 * @property integer $number
 * @property integer $cardno_begin
 * @property integer $cardno_end
 * @property integer $proportion
 * @property integer $status
 * @property integer $created_at
 */
class CardsCount extends \zhtfrontend\components\bases\BaseModel
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%cards_count}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['issuser_id', 'reissuser_id', 'salesman', 'telephone', 'cards_send_id', 'is_withdraw', 'batch_id', 'number', 'cardno_begin', 'cardno_end', 'proportion', 'status', 'created_at'], 'integer'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('zhtfrontend', '自增id'),
            'issuser_id' => Yii::t('zhtfrontend', '发卡人id'),
            'reissuser_id' => Yii::t('zhtfrontend', '二级发卡人id '),
            'salesman' => Yii::t('zhtfrontend', '三级用户姓名'),
            'telephone' => Yii::t('zhtfrontend', '三级用户电话'),
            'cards_send_id' => Yii::t('zhtfrontend', '一级发卡id'),
            'is_withdraw' => Yii::t('zhtfrontend', '是否为回收卡 0 否 1 是'),
            'batch_id' => Yii::t('zhtfrontend', '批次id'),
            'number' => Yii::t('zhtfrontend', '发卡数量'),
            'cardno_begin' => Yii::t('zhtfrontend', '开始卡号'),
            'cardno_end' => Yii::t('zhtfrontend', '结束卡号'),
            'proportion' => Yii::t('zhtfrontend', '分成比例'),
            'status' => Yii::t('zhtfrontend', '类型 0 一级发卡 1 二级发卡'),
            'created_at' => Yii::t('zhtfrontend', '发卡时间'),
        ];
    }
}
